/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.Cloudtap.Plugins;

import com.Cloudtap.Backend.*;
import java.util.*;
/**
 *
 * @author Dharshan
 */
public class MockVM extends BaseVM {
    
    public MockVM(String name, String description, Date creationTime,
            VMState state, String OS, String hardwareType, boolean autoScaling,
            boolean loadBalancing)
    {
        super(name, description, creationTime, VMState.Stopped,OS);

        //Populate custom properties
        this.SetProperty(MockVMTypePropertyID.AutoScaling, hardwareType);
        this.SetProperty(MockVMTypePropertyID.HardwareType, autoScaling);
        this.SetProperty(MockVMTypePropertyID.LoadBalancing, loadBalancing);
    }

    @Override
    public void Start() {
        this.SetProperty(BaseVMTypePropertyID.State, VMState.Running);
    }

    @Override
    public void Stop() {
        this.SetProperty(BaseVMTypePropertyID.State, VMState.Stopped);

    }

}
